package com.ruoyi.mine.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MineFileUploadDTO {

    public interface Upload {
    }

    @NotNull(groups = {Upload.class}, message = "矿山文件不能为空")
    private MultipartFile file;

    @NotNull(groups = {Upload.class}, message = "矿山ID不能为空")
    private String mineId; // 矿山ID

    @NotNull(groups = {Upload.class}, message = "矿山文件类型不能为空")
    private String mineFileType;

    @NotNull(groups = {Upload.class}, message = "矿山文件名称不能为空")
    private String mineFileName;

    private String minioBucketName;

    private String minioFileName;

}
